import React from 'react';
import { Link } from 'react-router-dom';

class Detail extends React.Component{
    state = {
        name:'详情页'
    }
    render() {
        const {name} = this.state;
        return (
            <div>
                <h1>{name}</h1>
                <Link to="/center">center</Link>
            </div>
        )
    }
}

export default Detail;